package com.xgqngu.test.aop.cglib;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

//配置类
@Configuration
@ComponentScan(basePackages = {"com.xgqngu.test.aop.cglib"})
@EnableAspectJAutoProxy   // Spring 会自动扫描带有 @Aspect 注解的切面类，并在运行时生成相应的代理对象
public class MyConfig {

}
